package com.mrx.xfriendship.dao;

import com.mrx.xfriendship.model.po.TagPO;
import com.mrx.xfriendship.model.vo.TagManagerPageVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Mr.X
 * @since 2023-01-14 10:50:30
 */
@Mapper
public interface TagMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(TagPO record);

    int insertSelective(TagPO record);

    TagPO selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TagPO record);

    int updateByPrimaryKey(TagPO record);

    List<TagPO> selectAll();

    List<TagPO> selectPage(TagManagerPageVO vo);

    void updateNameById(@Param("id") Integer id, @Param("name") String name);

    Boolean checkNameExists(String name);

}
